class categ{
  String subject;
  ArrayList<film> films;

  public categ(String sub){
  subject=sub;
  films = new ArrayList<film>();
  }
  String getSubject(){
   return subject; 
  }
  void setSubject(String sub){
   subject=sub;
  }
  void addFilm(film f){
    films.add(f);
  }
  int size(){
  return films.size();
  }
  Ball[] toBallsArray(){
    Ball[] f = new Ball[films.size()];
    for(int i =0 ; i<films.size();++i){
        f[i]=films.get(i).ball;
    }
    return f;
  }
}
